#include<bits/stdc++.h>

using namespace :: std;

#define ll long long
#define mp make_pair
#define ld long double
#define F first
#define S second
#define pii pair<int,int>
#define pb push_back

const int maxn=2e5+500;
const int inf=1e9+900;
const int mod=1e9+7;

bool a[maxn];
int pr[maxn];
int saf[maxn];

int main(){/*
	ios_base::sync_with_stdio(false);
	cin.tie(0);*/
	int t;
	cin>>t;
	while(t--){
		int n,k,m;
		cin>>n>>k>>m;
		fill(a,a+n,1);
		for(int i=0;i<m;i++){
			int b;
			cin>>b;
			b--;
			a[b]=0;
		}
		pr[0]=a[0];
		for(int i=1;i<n;i++){
			pr[i]=pr[i-1]+(a[i]);
		}
		for(int i=0;i<n;i++){
			saf[i]=(n-m)-pr[i];
		}
		bool coutt=0;
		if((n-m)%(k-1)!=0){
			cout<<"NO\n";
			continue;
		}
		for(int i=0;i<n;i++){
			if(a[i]==0){
				if(pr[i]>=k/2 && saf[i]>=k/2){
					cout<<"Yes\n";
					coutt=1;
					break;
				}
			}
		}
		if(coutt)continue;
		cout<<"No\n";
	}

}
