t=int(input()) for _ in range(t): n=int(input()) A=list(map(int,input().split())) c=0 fg=False for i in range(n): if A[i]==1 and c%2==0: fg=True c+=A[i] if fg: print("Alice") elif c%2==1: print("Alice") else: print("Bob")