#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<int> v;
    int num;
    for (int i = 1; i <= n; i++) {
      cin >> num;
      v.push_back(num);
    }
    sort(v.begin(), v.end());
    int cur = 1;
    for (int i = n - 1; i >= 0; i--) {
      if (v[i] <= cur + i) {
        cur += i + 1;
        break;
      }
    }
    cout << cur << "\n";
  }
  return 0;
}
