#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
using namespace std;

int main(){
	int t;
	cin >> t;
	while(t--){
		int n;
		cin >> n;
		int s[n];
		int mx = 0,mn = 9999999;
		for(int a = 0;a < n;a++){
			cin >> s[a];
			mn = min(mn,s[a]);
			mx = max(mx,s[a]);
		}
		if (mn < 0){
			cout << "NO\n";
		}
		else{
			cout << "YES\n";
			if (mn == 0){
				cout << mx+1 << '\n';
				for(int a = 0;a <= mx;a++) cout << a << ' ';
				cout << '\n';
			}
			else{
				cout << mx << '\n';
				for(int a = 1;a <= mx;a++) cout << a << ' ';
				cout << '\n';
			}
		}
	}
}
