#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int o = 0; o < t; o++) {
    long long n, x;
    cin >> n >> x;
    long long a[n];
    long long c = 0, ev = 0, sum = 0;
    int ans = 0;
    for (long long i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2) {
        c++;
      } else {
        ev++;
      }
      sum = sum + a[i];
    }
    if (x == n) {
      if (sum % 2) {
        cout << "Yes" << endl;
      } else {
        cout << "No" << endl;
      }
    } else {
      if ((c > 0) && (ev > 0)) {
        cout << "Yes" << endl;
      } else {
        if (ev == 0) {
          if (x % 2) {
            cout << "Yes" << endl;
          } else {
            cout << "No" << endl;
          }
        } else {
          cout << "No" << endl;
        }
      }
    }
  }
  return 0;
}
