#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int q = 0; q < t; q++) {
    int n, x, p = 0, m = 0;
    cin >> n >> x;
    int w;
    for (int i = 0; i < n; i++) {
      cin >> w;
      if (w % 2 == 1)
        p++;
      else
        m++;
    }
    if (p > 0) {
      if (m + p - 1 + (p % 2) >= x) {
        if (m > 0)
          cout << "Yes\n";
        else if (x % 2 == 1)
          cout << "Yes\n";
        else
          cout << "No\n";
      } else
        cout << "No\n";
    } else
      cout << "No\n";
  }
  return 0;
}
