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