#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int odd = 0, even = 0;
    int tmp;
    for (int i = 1; i <= n; i++) {
      cin >> tmp;
      if (tmp & 1)
        odd++;
      else
        even++;
    }
    bool help = false;
    for (int i = 1; i <= odd; i += 2) {
      if (i + even >= x && i <= x) {
        cout << "Yes\n";
        help = true;
        break;
      }
    }
    if (help) continue;
    cout << "No\n";
  }
}
