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