#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 50;
const int inf = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const int HASH = 131;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x;
    cin >> n >> x;
    int ji = 0, ou = 0;
    for (int i = 1; i <= n; i++) {
      int tmp;
      cin >> tmp;
      if (tmp % 2 == 1)
        ji++;
      else
        ou++;
    }
    x -= ou;
    if (x < 0) {
      if (ji > 0)
        printf("Yes\n");
      else
        printf("No\n");
    } else if (x < ji && ou > 0)
      printf("Yes\n");
    else if (x == ji) {
      if (ji % 2 == 1)
        printf("Yes\n");
      else
        printf("No\n");
    } else if (ou == 0 && x % 2 == 1)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
