#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 maria = 1;
    int check = 0;
    int grani = 0;
    for (grani = n - 1; grani >= 0; grani--) {
      if (v[grani] <= grani + 1) {
        check = 1;
        break;
      }
    }
    if (check) {
      cout << grani + 2 << "\n";
    } else
      cout << maria << "\n";
  }
  return 0;
}
