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