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