#include<bits/stdc++.h>
#define ll unsigned long long
#define N 1010

using namespace std;

int t, a[N], n;

int main()
{
	cin >> t;
	while(t --)
	{
		cin >> n;
		int flag = 1;
		
		for(int i = 1; i <= n; i ++) 
		{
			cin >> a[i];
			if(a[i] < 0) flag = 0;
		}
		
		if(!flag)
		{
			cout << "NO" << endl;
			continue;
		}
		
		sort(a + 1, a + 1 + n);
		cout << "YES" << endl;
		cout << a[n] + 1 << endl;
		cout << 0;
		for(int i = 1; i <= a[n]; i ++) 
			cout << " " << i;
		cout << endl;
	}
	
	return 0;
}