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

int t, n;
int a[302];
map<int, bool> esta;
int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);
    cin >> t;
    while(t--){
        cin >> n;
        for(int i = 1; i <= n; ++i){
            cin >> a[i];
            esta[a[i]] = true;
        }
        bool res = true;
        for(int i = 1; i <= n && res; ++i){
            for(int j = i + 1; j <= n; ++j){
                if(!esta[abs(a[i] - a[j])]){
                    n++;
                    a[n] = abs(a[i] - a[j]);
                    esta[abs(a[i] - a[j])] = true;
                    if(n > 300){
                        res = false;
                    }
                    i = 0;
                    break;
                }
            }
        }
        if(res){
            cout << "YES\n";
            cout << n << "\n";
            for(int i = 1; i <= n; ++i){
                cout << a[i] << ' ';
            }
            cout << "\n";
        }else{
            cout << "NO\n";
        }
        esta.clear();
    }
    return 0;
}
