from collections import defaultdict t = int(input()) for _ in range(t): n = int(input()) a = list(map(int,input().split())) if n & 1: print("Alice") else: d = defaultdict(int) for i in range(n): d[a[i]] += 1 ans = "Bob" for k in d.keys(): if d[k] % 2 != 0: ans = "Alice" print(ans)