from sys import stdin t, *indata = map(int, stdin.read().split()) offset = 0 for _ in range(t): n = indata[offset] offset += 1 if n % 2 == 1: print("Alice") offset += n continue d = dict() appear = set() for i in range(n): a = indata[offset+i] if a in appear: d[a] += 1 else: d[a] = 1 appear.add(a) offset += n check = True for i in appear: if d[a] % 2 == 1: check = False break if check: print("Bob") else: print("Alice")