#include <bits/stdc++.h>
using namespace std;
const int LARGE_INT = 1000000007;
const long long LARGE_LONG = 1L << 60;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  for (int tc = 0; tc < t; tc++) {
    int n, x;
    cin >> n >> x;
    int oc = 0;
    int ec = 0;
    for (int i = 0; i < n; i++) {
      int pla;
      cin >> pla;
      if (pla % 2 == 1) {
        oc++;
      } else {
        ec++;
      }
    }
    if (oc == 0) {
      cout << "No" << endl;
    } else if (ec == 0) {
      if (x % 2 == 1) {
        cout << "Yes" << endl;
      } else {
        cout << "No" << endl;
      }
    } else {
      if (x % 2 == 1) {
        int hx = (x - 1) / 2;
        if (hx <= (oc - 1) / 2 + ec / 2) {
          cout << "Yes" << endl;
        } else {
          cout << "No" << endl;
        }
      } else {
        int hx = (x - 2) / 2;
        if (hx <= (oc - 1) / 2 + (ec - 1) / 2) {
          cout << "Yes" << endl;
        } else {
          cout << "No" << endl;
        }
      }
    }
  }
  return 0;
}
