#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long o = 0, e = 0, a, n, x, y, c = 0, k;
    cin >> n >> x;
    for (int i = 0; i < n; i++) {
      cin >> y;
      if (y % 2 == 0) {
        e++;
      } else {
        o++;
      }
    }
    int p = min(o, x);
    for (int i = 1; i <= p; i += 2) {
      if (x - i <= e) {
        c = 1;
        break;
      }
    }
    if (c == 1) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
