#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int n, x;
    cin >> n >> x;
    long long int count = 0;
    for (long long int i = 0; i < n; i++) {
      long long int temp;
      cin >> temp;
      count = count + temp % 2;
    }
    if (count == 0) {
      cout << "No" << endl;
    } else if (x == n) {
      if (count % 2 == 1)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    } else {
      if (count != n) {
        cout << "Yes" << endl;
      } else if (count == n) {
        if (x % 2 == 0) {
          cout << "No" << endl;
        } else {
          cout << "Yes" << endl;
        }
      } else {
        cout << "No" << endl;
      }
    }
  }
  return 0;
}
