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