#include <bits/stdc++.h>
using namespace std;
double pi = acos(-1);
void OJ() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    long long n, x, od = 0, ev = 0;
    cin >> n >> x;
    for (long long i = 0; i < n; i++) {
      long long temp;
      cin >> temp;
      if (temp & 1)
        od++;
      else
        ev++;
    }
    if (ev >= x) {
      if (od)
        cout << "YES\n";
      else
        cout << "NO\n";
      continue;
    } else {
      if (ev > 0) {
        if (od % 2 == 0) od--;
        if (ev + od >= x) {
          cout << "YES\n";
          continue;
        }
      } else {
        if (x & 1)
          cout << "YES\n";
        else
          cout << "NO\n";
        continue;
      }
    }
    cout << "NO\n";
  }
}
