#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    vector<int> a(n);
    int k0 = 0, k1 = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 1)
        k1++;
      else
        k0++;
    }
    if ((x % 2 == 0 && k0 == 0) || (k1 == 0) || (x == n && k1 % 2 == 0))
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
