#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int arr[n];
    int o, e;
    o = e = 0;
    int i = 0;
    for (int j = 0; j < 10; j++) {
    }
    for (int j = 0; j < 10; j++) {
    }
    for (int j = 0; j < 10; j++) {
    }
    while (i < n) {
      int x;
      cin >> x;
      if (x % 2 == 0) {
        e++;
      } else
        o++;
      i++;
    }
    if (o == 0)
      cout << "No" << endl;
    else {
      bool pos = false;
      i = 1;
      while (i <= o) {
        if (i > x) break;
        if ((x - i) <= e) {
          pos = true;
          break;
        }
        i = i + 2;
      }
      if (!pos)
        cout << "No" << endl;
      else
        cout << "Yes" << endl;
    }
  }
}
