#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int a[n];
    int o = 0;
    int e;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 1) o++;
    }
    e = n - o;
    if (x == n) {
      if (o % 2 == 1)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    } else {
      if (o == 0)
        cout << "NO" << endl;
      else if (e == 0) {
        if (x % 2 == 0)
          cout << "NO" << endl;
        else
          cout << "YES" << endl;
      } else {
        if (o % 2 == 1) {
          if (x - o >= 0) {
            cout << "YES" << endl;
          } else {
            if (x % 2 == 1)
              cout << "YES" << endl;
            else {
              cout << "YES" << endl;
            }
          }
        } else {
          if (x - o + 1 >= 0) {
            cout << "YES" << endl;
          } else {
            if (x % 2 == 1)
              cout << "YES" << endl;
            else {
              cout << "YES" << endl;
            }
          }
        }
      }
    }
  }
}
