#include <bits/stdc++.h>
using namespace std;
void prep() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  prep();
  int t;
  cin >> t;
  while (t--) {
    int n, x, cnt_evn = 0, cnt_odd = 0;
    cin >> n >> x;
    int p;
    string ans = "No";
    for (int i = 0; i < n; i++) {
      cin >> p;
      if (p & 1)
        cnt_odd++;
      else
        cnt_evn++;
    }
    for (int i = 1; i <= x; i += 2) {
      if ((i <= cnt_odd) && (cnt_evn + i >= x)) {
        ans = "Yes";
      }
    }
    cout << ans << "\n";
  }
  return 0;
}
