#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x;
  cin >> n >> x;
  long long even = 0, odd = 0;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    if (a & 1)
      odd++;
    else
      even++;
  }
  if ((odd == 0) || (even == 0 && x % 2 == 0) || (x == n && odd % 2 == 0)) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
