from collections import Counter T = int(input()) for _ in range(T): N = int(input()) A = list(map(int,input().split())) if N%2==1: print('Alice') else: c = Counter(A) odd = False for v in c.values(): if v%2:odd=True;break print('Alice'if odd else 'Bob')