#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
long long mod2 = 998244353;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  ;
  long long t = 1;
  cin >> t;
  while (t--) {
    long long n = 0, m = 0, k = 0, r = 0, f = 0, cnt = 0, x = 0, l = 0, y = 0,
              z = 0, mx = 0, sum = 0, mini = INT_MAX;
    string sss, str, str2;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    sum = 1;
    x = 1;
    for (long long i = 0; i < n; i++) {
      if (x >= a[i]) {
        x++;
        sum = x;
      } else {
        x++;
      }
    }
    cout << sum << '\n';
  }
  cerr << "\nTime elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
}
