#include <bits/stdc++.h>
#define ll long long int
#define pii pair<ll,ll>
#define pb push_back
#define mp make_pair
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;

#define MOD 1000000007

/*
   notes
*/

bool check(int x, vector<int> a) {
   for (int i = 0; i < a.size(); i++) {
      if (a[i] == x)return true;
   }
   return false;
}

void solve()
{
   int n; cin >> n;
   vector<int> a;
   for (int i = 0; i < n; i++) {
      int x; cin >> x;
      a.pb(x);
   }
   vector<int> b;
   sort(a.begin(), a.end());
   bool loop = true;
   while (loop) {
      if (a.size() > 300) {
         cout << "NO\n";
         return;
      }
      bool flag = true;
      for (int i = 0; i < a.size(); i++) {
         for (int j = i + 1; j < a.size(); j++) {
            if (!check(abs(a[i] - a[j]), a)) {
               a.pb(abs(a[i] - a[j]));
               flag = false;
               break;
            }
         }
         if (!flag)break;
      }
      if (!flag)continue;
      loop = false;

   }
   if (a.size() <= 300) {
      cout << "YES\n";
      cout << a.size() << endl;
      for (int x : a)cout << x << " ";
      cout << endl;
   }
   else
   {
      cout << "NO\n";
   }
}



int main() {
   FAST
   ll t = 1;
   cin >> t;
   while (t--)solve();
   return 0;
}


