#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, j, k, l, n, x;
  cin >> t;
  while (t--) {
    cin >> n >> x;
    int o = 0, e = 0;
    for (i = 0; i < n; i++) {
      cin >> k;
      if (k % 2 == 0) {
        e++;
      } else
        o++;
    }
    if (o == 0) {
      cout << "NO" << endl;
    } else if (!(x == n && o % 2 == 0) && !((o == n) && x % 2 == 0)) {
      cout << "YES" << endl;
    } else
      cout << "NO" << endl;
  }
}
