#include <bits/stdc++.h>
using namespace std;
void solve() {
  vector<int> vi;
  int n, value;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> value;
    (vi).push_back((value));
  }
  sort(vi.begin(), vi.end());
  int ans = 1, temp = 1;
  for (int i = 0; i < n; i++) {
    if (vi[i] > i + 1) {
      temp++;
      continue;
    } else {
      ans += temp;
      temp = 1;
    }
  }
  cout << ans << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
