#include <bits/stdc++.h>
using namespace std;
void solve() {
  int N, K;
  cin >> N >> K;
  vector<int> a(N), cnt(2);
  for (auto& x : a) {
    cin >> x;
    cnt[x % 2]++;
  }
  for (int i = 1; i <= K; i += 2) {
    if (i <= cnt[1] and K - i <= cnt[0]) {
      cout << "Yes" << endl;
      return;
    }
  }
  cout << "No" << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int T = 1;
  cin >> T;
  while (T--) solve();
  return 0;
}
