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