#include <bits/stdc++.h>
using namespace std;
long long t;
long long n;
long long a[100001];
signed main() {
  cin >> t;
  for (long long i = 1; i <= t; i++) {
    cin >> n;
    for (long long j = 1; j <= n; j++) {
      cin >> a[j];
    }
    sort(a + 1, a + 1 + n);
    long long ok = 1;
    for (long long j = n; j >= 1; j--) {
      if (j >= a[j]) {
        cout << j + 1 << endl;
        ok = 0;
        break;
      }
    }
    if (ok == 1) {
      cout << 1 << endl;
    }
  }
}
