t = int(input()) for _ in range(t): n = int(input()) a = list(map(int,input().split())) if n & 1: print("Alice") else: s = set(a) if not len(s) == 2: print("Bob") else: x,y = sorted(list(s)) if a.count(y) == 1: print("Alice") else: print("Bob")