#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
void solve() {
  int n, x;
  cin >> n >> x;
  int a[n + 1];
  int n_ods = 0, n_even = 0;
  for (long long int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2)
      n_ods++;
    else
      n_even++;
  }
  if (n_ods == 0) {
    cout << "No"
         << "\n";
    return;
  }
  if (n_even == 0 && x % 2 == 0) {
    cout << "No"
         << "\n";
    return;
  }
  if (x == n) {
    if (n_ods % 2 == 0) {
      cout << "No"
           << "\n";
    } else {
      cout << "Yes"
           << "\n";
    }
  } else {
    cout << "Yes"
         << "\n";
  }
  return;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  while (T--) {
    solve();
  }
  return 0;
}
