#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> v;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (mp[x] == 0) {
      v.push_back(x);
    }
    mp[x]++;
  }
  sort(v.begin(), v.end());
  int curr = 1, ug = 0;
  for (int i = 0; i < v.size(); i++) {
    ug += mp[v[i]];
    if (ug + curr > v[i]) {
      curr = ug + curr;
      ug = 0;
    }
  }
  cout << curr;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(12);
  int t = 1;
  cin >> t;
  for (int i = 1; i <= t; i++) {
    solve();
    cout << "\n";
  }
  return 0;
}
