r=input for _ in[0]*int(r()): N,S=map(int,r().split());A,c,m=map(int,r().split()),1,(1<