#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    multiset<pair<int, int>> s;
    multiset<int> ss;
    int n;
    cin >> n;
    int pp;
    int nog = 1;
    int moo = 0;
    int kount = 1;
    for (int i = 0; i < n; i++) {
      cin >> pp;
      ss.insert(pp);
    }
    for (auto x : ss) {
      s.insert(make_pair(x, kount));
      kount++;
    }
    for (auto x : s) {
      if (x.first <= x.second) {
        moo = x.second;
      }
    }
    if (nog + moo != 1)
      cout << nog + moo << endl;
    else
      cout << 1 << endl;
  }
}
