#include <bits/stdc++.h>
using namespace std;
const double PI = 3.141592653589793238;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, x, i, o = 0, e = 0, y;
    cin >> n >> x;
    long long int a[n];
    for (i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (i = 0; i < n; i++) {
      if (a[i] % 2 != 0)
        o++;
      else
        e++;
    }
    if (o == 0)
      cout << "No"
           << "\n";
    else {
      y = x - e;
      if (y <= 0)
        cout << "Yes"
             << "\n";
      else if ((y % 2 == 0) && (y < o) && (e != 0))
        cout << "Yes"
             << "\n";
      else if ((y % 2 != 0) && (y <= o))
        cout << "Yes"
             << "\n";
      else
        cout << "No"
             << "\n";
    }
  }
}
