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