from collections import Counter T = int(input()) for _ in range(T): N = int(input()) As = list(map(int, input().split())) if N % 2 == 1: print("Alice") else: nim = 0 cnter = Counter(As) odd = False for val in cnter.values(): if val % 2: odd = True break if odd: print("Alice") else: print("Bob")