#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 20;
int n, a[MAX];
int main(void) {
  int T;
  scanf("%d", &T);
  while (T--) {
    scanf("%d", &n);
    for (register int i = (1); i <= (n); ++i) scanf("%d", &a[i]);
    sort(a + 1, a + 1 + n);
    int cnt = 1;
    for (register int i = (1); i <= (n); ++i)
      if (a[i] <= i) cnt = i + 1;
    printf("%d\n", cnt);
  }
  return 0;
}
