#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, grannies = 1;
    cin >> n;
    grannies += n;
    vector<int> a(n);
    for (auto &i : a) {
      cin >> i;
    }
    sort(a.begin(), a.end(), greater<int>());
    for (int i : a) {
      if (grannies - 1 < i) grannies--;
    }
    cout << grannies << '\n';
  }
}
