#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  sort(a.begin(), a.end());
  for (int i = n - 1; i > -1; --i) {
    if (i + 1 >= a[i]) {
      cout << i + 2 << endl;
      return;
    }
  }
  cout << 1 << endl;
}
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; ++i) solve();
}
