#include <bits/stdc++.h>
using namespace std;
int main() {
  long long T;
  cin >> T;
  while (T--) {
    long long odd = 0, ev = 0;
    long long n, x;
    cin >> n >> x;
    for (long long i = 0; i < n; i++) {
      long long a;
      cin >> a;
      if (a % 2 == 1)
        odd++;
      else
        ev++;
    }
    if (x == n) {
      if (odd % 2 == 0) {
        cout << "No\n";
      } else if (odd % 2 == 1) {
        cout << "Yes\n";
      }
    } else if (odd == n) {
      if (x % 2 == 0) {
        cout << "No\n";
      } else
        cout << "Yes\n";
    } else {
      if (odd > 0)
        cout << "Yes";
      else
        cout << "No";
      cout << "\n";
    }
  }
}
