#include <bits/stdc++.h>
using namespace std;
long long ar[100001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long T;
  cin >> T;
  while (T--) {
    long long n, x;
    cin >> n >> x;
    long long e = 0, o = 0, a[n];
    for (long long i = 0; i < n; ++i) {
      cin >> a[i];
      if (a[i] & 1)
        o++;
      else
        e++;
    }
    if (n < x) {
      cout << "No"
           << "\n";
      continue;
    }
    if (n == x && !(o & 1)) {
      cout << "No"
           << "\n";
      continue;
    }
    if (o == 0) {
      cout << "No"
           << "\n";
      continue;
    }
    if (o & 1) {
      if (x & 1)
        cout << "Yes"
             << "\n";
      else {
        if (e)
          cout << "Yes"
               << "\n";
        else
          cout << "No"
               << "\n";
      }
    } else {
      o--;
      if (o + e < x) {
        cout << "No"
             << "\n";
        continue;
      }
      if (x & 1)
        cout << "Yes"
             << "\n";
      else {
        if (e)
          cout << "Yes"
               << "\n";
        else
          cout << "No"
               << "\n";
      }
    }
  }
  return 0;
}
