#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.rbegin(), a.rend());
  int res = n;
  for (int i = 0; i < n; ++i, --res)
    if (a[i] <= res) break;
  cout << res + 1 << '\n';
}
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  int tc;
  cin >> tc;
  while (tc--) solve();
  return 0;
}
