#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  vector<int> v, w;
  while (t--) {
    int n, m, ev = 0, od = 0;
    cin >> n >> m;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 0)
        ev++;
      else
        od++;
    }
    if (m % 2 == 0) {
      int p = m - 1;
      int f = 0;
      if (ev == 0)
        cout << "No" << endl;
      else {
        while (p > 0) {
          if (p <= od && (m - p) <= ev) {
            f = 1;
            break;
          } else
            p = p - 2;
        }
        if (f == 1)
          cout << "Yes" << endl;
        else
          cout << "No" << endl;
      }
    } else if (m % 2 == 1) {
      int q = m - 2;
      int h = 0;
      if (od >= m)
        cout << "Yes" << endl;
      else {
        while (q > 0) {
          if (q <= od && (m - q) <= ev) {
            h = 1;
            break;
          } else
            q = q - 2;
        }
        if (h == 1)
          cout << "Yes" << endl;
        else
          cout << "No" << endl;
      }
    }
  }
  return 0;
}
