
#include <bits/stdc++.h>
#define endl "\n"
#define ll long long
using namespace std;

int main() {
    int t;
    cin >> t;

    while(t--) {
        ll n;
        ll f(0);
        ll maxi = 0;
        cin >> n;

        vector<ll> nums(n);

        for (int i = 0; i < n; ++i)
        {
            cin >> nums[i];
            maxi = max(nums[i], maxi);
            if(nums[i] < 0)
                f = 1;
        }

        if(f) {
            cout <<"NO"<<endl;
            continue;
        }

        cout <<"YES"<<endl;
        cout << maxi+1 << endl;

        ll i = 0;
        while(i <= maxi) {
            cout <<i<<" ";
            i++;
        }

        cout << endl;
    }

    return 0;
}
