#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int a[n];
    int odd = 0, even = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 0)
        even++;
      else
        odd++;
    }
    if (odd >= 1) {
      if (odd % 2 == 0) odd--;
      if (x % 2 == 0) {
        x--;
        x = x - odd >= 0 ? x - odd : 0;
        x++;
        if (even >= x)
          cout << "Yes" << endl;
        else
          cout << "No" << endl;
      } else {
        x = x - odd;
        if (even >= x)
          cout << "Yes" << endl;
        else
          cout << "No" << endl;
      }
    } else
      cout << "No" << endl;
  }
}
