for _ in range(int(input())): n = int(input()) a = list(map(int, input().split())) now = 0 ans = False for x in a: if x == 1: if now == 0: ans = True break now ^= x % 2 elif now == 0: now ^= x % 2 else: now ^= x % 2 else: ans = now print('Alice' if ans else 'Bob')