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