#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, k;
    cin >> n >> k;
    int even = 0;
    int odd = 0;
    long long sum = 0;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      if (x & 1) {
        odd++;
      } else {
        even++;
      }
      sum += x;
    }
    if ((odd == 0) || (odd == n and k % 2 == 0) ||
        ((n == k) and sum % 2 == 0)) {
      cout << "No" << endl;
    } else
      cout << "Yes" << endl;
  }
}
