#include <bits/stdc++.h>
using namespace std;
int solve() {
  int n;
  int k;
  cin >> n >> k;
  int toal_odd = 0;
  int toal_even = 0;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] & 1)
      toal_odd++;
    else
      toal_even++;
  }
  if (k == n && toal_odd % 2 == 1) {
    cout << "YES" << endl;
  } else if (k < n && toal_odd && toal_even) {
    cout << "YES" << endl;
  } else if (k == 1 && toal_odd) {
    cout << "YES" << endl;
  } else if (toal_odd >= k && k % 2 == 1) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
int main() {
  int cs = 1;
  int cn = 1;
  cin >> cs;
  while (cs--) {
    solve();
  }
}
