#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, x, temp, o = 0, e = 0;
  bool flag = false;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    if (temp % 2 == 0)
      e++;
    else
      o++;
  }
  if (o > 0) {
    if (o % 2 == 0) {
      for (int i = 1; i <= o - 1; i += 2) {
        if (x - i >= 0 && e >= x - i) {
          cout << "Yes\n";
          return;
        }
      }
      cout << "No\n";
    } else {
      for (int i = 1; i <= o; i += 2) {
        if (x - i >= 0 && e >= x - i) {
          cout << "Yes\n";
          return;
        }
      }
      cout << "No\n";
    }
  } else
    cout << "No\n";
}
int main() {
  int T;
  cin >> T;
  while (T) {
    solve();
    T--;
  }
}
