#include <bits/stdc++.h>
using namespace std;
const int N = 1000;
const int INF = 1e9 + 107;
const int MOD = 998244353;
void IOS() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  IOS();
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int x;
    cin >> x;
    vector<int> v(2, 0);
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      v[x % 2] += 1;
    }
    bool ok = false;
    for (int cur = 1; cur <= x; cur += 2) {
      if (v[1] >= cur && v[0] >= x - cur) ok = true;
    }
    if (ok) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
}
