#include <bits/stdc++.h>
using namespace std;
long long gran[200001], testc, grannum, grancounter, ans;
bool valor = false, tango = false;
int main() {
  cin >> testc;
  for (int i = 1; i <= testc; i++) {
    cin >> grannum;
    for (int i = 1; i <= grannum; i++) {
      cin >> gran[i];
    }
    sort(gran + 1, gran + grannum + 1);
    ans = 0;
    for (int i = grannum; i >= 1; i--) {
      if (gran[i] <= i) {
        ans = i;
        break;
      }
    }
    cout << ans + 1 << endl;
  }
}
