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