#include <bits/stdc++.h>
using namespace std;
int32_t main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int n, x, od = 0, ev = 0;
    cin >> n >> x;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2)
        od++;
      else
        ev++;
    }
    if (od == 0)
      cout << "No" << endl;
    else if (x % 2 == 0 && ev == 0)
      cout << "No" << endl;
    else if (x == n && od % 2 == 0)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
