#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    for (auto &it : a) cin >> it;
    sort(a.begin(), a.end());
    long long g = 1;
    long long ans = 1;
    long long cnd = 1;
    for (long long i = 0; i < n; i++) {
      if (a[i] <= cnd) {
        cnd++;
        g = cnd;
      } else {
        cnd++;
      }
    }
    cout << g << "\n";
  }
}
