#include <bits/stdc++.h>

using namespace std;

#define endl "\n"
#define all(x) x.begin(), x.end()
#define ll long long int
#define pb push_back
#define mp make_pair

int main()
{

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	auto start = chrono::high_resolution_clock::now();

	ll t = 1;
	cin >> t;
	while (t--) {
		int n;
		cin >> n;

		vector <int> v;
		int temp, flag = 0, mx = 0;
		map <int, int> m;

		for (int i = 0; i < n; i++) {
			cin >> temp;
			v.pb(temp);
			if (temp < 0) {
				flag = 1;
			}
			if (temp > mx) {
				mx = temp;
			}
		}


		if (flag) {
			cout << "NO" << endl;
		}
		else {
			cout << "YES" << endl;
			cout << mx + 1 << endl;

			for (int i = 0; i <= mx; i++) {
				cout << i << " ";
			}
			cout << endl;
		}


	}

	auto end = chrono::high_resolution_clock::now();
	//cout << chrono::duration_cast<chrono::microseconds>(end - start).count() << "ms" << endl;

	return 0;
}
