T=int(input()) for _ in range(T): n=int(input()) a=list(map(int,input().split())) a.sort() a=[0]+a c=0 g=0 for i in range(1,n): if a[i-1]