#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, x, n, sum = 0, a;
  cin >> t;
  for (int j = 0; j < t; j++) {
    cin >> n >> x;
    sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a;
      if (a % 2) sum++;
    }
    if (sum >= 1 && !(x == n && sum % 2 == 0) && !(sum == n && x % 2 == 0))
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}
