#include <bits/stdc++.h>
using namespace std;
void answer() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int done = 1;
  for (int i = 1; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (a[i] != a[j]) {
        if (done) {
          cout << "YES" << endl;
          done = 0;
        }
        cout << i + 1 << " " << j + 1 << endl;
        break;
      }
    }
  }
  if (done) {
    cout << "NO" << endl;
  }
}
int main() {
  int test;
  cin >> test;
  while (test--) {
    answer();
  }
  return 0;
}
