#include <bits/stdc++.h>
using namespace std;
int t, n, a, x, even, odd;
bool czy = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> t;
  while (t--) {
    cin >> n >> x;
    even = 0;
    odd = 0;
    for (int i = 0; i < n; i++) {
      cin >> a;
      if (a % 2 == 0)
        even++;
      else
        odd++;
    }
    if (odd == 0) {
      cout << "nO" << endl;
      continue;
    }
    x--;
    odd--;
    czy = 0;
    while (x > 0) {
      if (x >= 2 && odd >= 2) {
        x -= 2;
        odd -= 2;
      } else if (even > 0) {
        x--;
        even--;
      } else {
        czy = 1;
        break;
      }
    }
    if (czy)
      cout << "nO" << endl;
    else
      cout << "yeS" << endl;
  }
  return 0;
}
