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