#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, x;
  cin >> n >> x;
  int odd = 0, even = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    (a & 1 ? odd : even) += 1;
  }
  bool ok = false;
  for (int i = 1; i <= x; i += 2) ok |= (odd >= i && even >= x - i);
  cout << (ok ? "Yes\n" : "No\n");
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tc;
  cin >> tc;
  while (tc--) solve();
  return 0;
}
