#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int z = 0; z < t; z++) {
    int n;
    cin >> n;
    int gran[n];
    for (int i = 0; i < n; i++) {
      cin >> gran[i];
    }
    sort(gran, gran + n);
    int counter = 1, tempvar = 0;
    for (int i = 0; i < n; i++) {
      if (gran[i] <= counter) {
        tempvar = i + 1;
      }
      counter++;
    }
    cout << tempvar + 1 << endl;
  }
  return 0;
}
