import sys input = sys.stdin.readline for _ in range(int(input())): N = int(input()) a = list(map(int, input().split())) if N & 1: print("Alice") else: nim = 0 for x in a: nim ^= x - 1 nim2 = 0 for x in a: nim2 ^= x if nim | nim2: print("Alice") else: print("Bob")