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