#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  while (n--) {
    int a;
    cin >> a;
    int arr[a];
    for (int i = 0; i < a; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + a);
    int count = 0;
    for (int i = 0; i < a; i++) {
      if (arr[i] <= i + 1) {
        count = i + 1;
      }
    }
    cout << count + 1 << endl;
  }
  return 0;
}
