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