#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, x, inp;
  cin >> n >> x;
  int even = 0, odd = 0;
  for (long long int i = 0; i < n; i++) {
    cin >> inp;
    if (inp % 2 == 0)
      even++;
    else
      odd++;
  }
  if (odd == 0) {
    cout << "NO\n";
    return;
  } else if (even >= (x - 1)) {
    cout << "YES\n";
    return;
  } else if (x == n) {
    if (odd % 2 == 0) {
      cout << "NO\n";
      return;
    }
  } else if (x % 2 == 0 && even == 0) {
    cout << "NO\n";
    return;
  }
  cout << "YES\n";
  return;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cerr.tie(NULL);
  ;
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
