for _ in [0] * int(input()): n, m = map(int, input().split()) a = [m] + list(map(int, input().split())) + [m,m] for i in range(n+1): if(a[i] > a[i+1] + a[i+2]): print("No") break else: print("Yes")