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