#include <bits/stdc++.h>
using namespace std;
long* input_array(int& n);
long* input_array(int& n) {
  long* arr = new long[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  return arr;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  while (T--) {
    int N, X;
    cin >> N >> X;
    long* arr = input_array(N);
    int O = 0, E = 0;
    for (int i = 0; i < N; i++) (arr[i] % 2 == 0) ? ++E : ++O;
    if (X <= E) {
      if (O > 0)
        cout << "Yes"
             << "\n";
      else
        cout << "No"
             << "\n";
    } else {
      if ((X - E) % 2 != 0)
        cout << "Yes"
             << "\n";
      else if (O >= (X - E + 1) && E > 0)
        cout << "Yes"
             << "\n";
      else if (E == 0 && X % 2 != 0)
        cout << "Yes"
             << "\n";
      else if (E == 0 && X % 2 == 0)
        cout << "No"
             << "\n";
      else
        cout << "No"
             << "\n";
    }
  }
  return 0;
}
