def solve(): N = int(input()) A = list(map(int, input().split())) b = [1 << (len(bin(i - 1)) - 2) for i in A] # print(b) c = 0 for i in b: c ^= i if c > 0: print("Alice") else: print("Bob") # print(c) T = int(input()) for _ in range(T): solve()