#include <bits/stdc++.h>
using namespace std;
void solveFunction() {
  int n, x;
  cin >> n >> x;
  int o = 0, e = 0;
  for (int i = 0; i < n; i++) {
    int y;
    cin >> y;
    if (y & 1)
      o++;
    else
      e++;
  }
  if (o == 0) {
    cout << "No\n";
    return;
  }
  o--;
  x--;
  x -= min(x & 1 ? x - 1 : x, (o / 2) * 2);
  x -= min(x, e);
  if (x == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t = 1;
  cin >> t;
  while (t--) {
    solveFunction();
  }
}
