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

int main(){
	int t; cin >> t;
	while(t--){
		int n; cin >> n;
		int a[105], x = -105, y = 105, z = 0;
		for(int i = 1; i <= n; i++){
			cin >> a[i];
			x = max(x,a[i]);
			y = min(y,a[i]);
		}	
		if(y < 0) cout << "NO" << endl;
		else{
			cout << "YES" << endl;
			if(y == 0){
				cout << x+1 << endl;
				for(int i = 0; i <= x; i++) cout << i << " ";
				cout << endl;
			}
			else{
				cout << x << endl;
				for(int i = 1; i <= x; i++) cout << i << " ";
				cout << endl;
			}
		}
	}
	return 0;
}