#include <bits/stdc++.h>
using namespace std;
const long long oo = 1000000000000000000;
long long int sum, ans = 0, mx = 0, mn = 1000000000, num;
map<string, string> mp, mpp;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, m;
    cin >> n >> m;
    sum = 0;
    ans = 0;
    int a[n + 1];
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      if (a[i] % 2 == 1) {
        sum++;
      }
    }
    ans = n;
    if (sum % 2 == 0) {
      ans--;
    }
    if (sum == 0) {
      ans = 0;
    }
    if (m > ans || (m % 2 == 0 && sum == n)) {
      cout << "NO";
    } else {
      cout << "YES";
    }
    cout << "\n";
  }
}
