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 if nim: print("Alice") continue nim = 0 for x in a: nim ^= x if nim: print("Alice") else: print("Bob")