#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    int index;
    int i;
    for (i = n - 1; i >= 0; i--) {
      if (arr[i] <= i + 1) {
        break;
      }
    }
    cout << i + 2 << "\n";
  }
}
