#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, aa, bb, cc, i, j, k, p, q, r, t, n, nn;
  cin >> p;
  while (p--) {
    long long int ooo = 0, eee = 0;
    long long int dd = 0;
    cin >> n >> k;
    for (int i = (0); i < (n); i = i + (1)) {
      cin >> a;
      if (a % 2 != 0) {
        ooo++;
      } else {
        eee++;
      }
    }
    bool cv = 0;
    for (int i = (1); i < (ooo + 1); i = i + (2)) {
      if ((i <= k) && ((k - i) <= eee)) {
        cv = true;
        break;
      }
    }
    if (cv) {
      cout << "YES" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
