#include<bits/stdc++.h>
#define int long long
#define zmrl(x) signed((x).size())
#define ahen(x) (x).begin(),(x).end()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
using namespace std;
using pii = pair<int,int>;

signed main() {
    ios_base::sync_with_stdio(false); cin.tie(NULL);
    int TC; cin>>TC;
    for (int tc=1; tc<=TC; tc++) {
        int n,k,m; cin>>n>>k>>m;
        vector<bool> v(n+5, true);
        for (int i=1; i<=m; i++) {
            int a; cin>>a; v[a] = false;
        }
        if ((n-m)%(k-1)) {
            cout<<"no\n";
            continue;
        }
        int cnt = 0;
        bool flag = false;
        for (int i=1; i<=n; i++) {
            if (v[i]) cnt++;
            else {
                if (cnt >= (k-1)/2 && n-m-cnt >= (k-1)/2) {
                    flag = true;
                    break;
                }
            }
        }
        cout<<(flag ? "yes" : "no")<<'\n';
    }
    return 0;
}