#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    vector<bool> id(n, false);
    int ans = 1;
    for (int i = 0; i < n; i++)
      if (i + 1 >= a[i]) id[i] = true;
    for (int i = n - 1; i >= 0; i--) {
      if (id[i]) {
        ans += i + 1;
        break;
      }
    }
    cout << ans << '\n';
  }
  return 0;
}
