for _ in range(int(input())): n = int(input()); x = 0 for v in map(int,input().split()): x ^= max(v-1,1) print("Alice" if x else "Bob")