#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    int n, xx;
    cin >> n >> xx;
    if (xx > n) {
      cout << "No" << endl;
      continue;
    }
    vector<int> e, o, k;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      if (x % 2 == 0) {
        e.push_back(x);
      } else {
        o.push_back(x);
      }
    }
    int g = o.size();
    int p;
    if (g % 2 == 1) {
      p = g;
    } else {
      p = g - 1;
    }
    int d = max(0, (xx - p));
    if (xx % 2 == 0 && e.size() == 0) {
      cout << "No" << endl;
      continue;
    }
    if (d <= e.size() && g != 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
