#include <bits/stdc++.h>
using namespace std;
void solution() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; ++i) cin >> v[i];
  sort(v.begin(), v.end());
  int i;
  for (i = n; i >= 1; i--) {
    if (v[i - 1] <= i) {
      break;
    }
  }
  cout << (i + 1) << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solution();
  }
  return 0;
}
