#include <bits/stdc++.h>
using namespace std;
void ans(int n, int x) {
  vector<int> a(n);
  int evenel = 0, oddel = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 0) {
      evenel++;
    } else {
      oddel++;
    }
  }
  if (oddel == 0) {
    cout << "No";
  } else if (evenel == 0) {
    if (x % 2 == 0)
      cout << "No";
    else
      cout << "Yes";
  } else if (oddel % 2 != 0) {
    cout << "Yes";
  } else if (x != n) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  cout << endl;
}
int main() {
  int t;
  cin >> t;
  while (t != 0) {
    int n, x;
    cin >> n >> x;
    ans(n, x);
    t--;
  }
  return 0;
}
