#include <bits/stdc++.h>
int main() {
  int n1, n2, n3, n4, n5, n6;
  std::cin >> n1;
  for (int i = 0; i < n1; i++) {
    std::cin >> n2 >> n3;
    n5 = 0, n6 = 0;
    for (int i = 0; i < n2; i++)
      std::cin >> n4, n5 += (n4 & 1), n6 += !(n4 & 1);
    if (n5 == 0)
      std::cout << "No\n";
    else {
      n5--, n3--;
      while (n3 >= 2 && n5 >= 2) n3 -= 2, n5 -= 2;
      while (n3 > 0 && n6 > 0) n3--, n6--;
      if (n3 == 0)
        std::cout << "Yes\n";
      else
        std::cout << "No\n";
    }
  }
}
