#include <bits/stdc++.h>
using namespace std;
int t, n, x, y;
string s;
int main() {
  cin >> t;
  while (t--) {
    cin >> n >> x;
    int odd = 0, even = 0;
    for (int i = 0; i < n; i++) {
      int xx;
      cin >> xx;
      if (xx % 2 == 0)
        odd++;
      else
        even++;
    }
    bool ok = false;
    for (int i = 0; i <= min(odd, x); i++) {
      if (even >= x - i) {
        if ((x - i) % 2 == 1) ok = true;
      }
    }
    if (ok)
      cout << "Yes";
    else
      cout << "No";
    cout << endl;
  }
}
