t=int(input()) for _ in range(t): n=int(input()) a=list(map(int,input().split())) if n%2==0 and [1]*n==a: print("Bob") else: print("Alice")