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