#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  bool res[t];
  int m = 0;
  int prvi[t];
  int drugi[t];
  for (int m = 0; m < t; m++) {
    int n;
    cin >> n;
    int a[n];
    bool nasli = false;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (int i = 1; i < n; i++) {
      if (abs(a[i - 1] - a[i]) > 1) {
        res[m] = true;
        prvi[m] = i - 1;
        drugi[m] = i;
        nasli = true;
        break;
      }
    }
    if (nasli == false) res[m] = false;
  }
  for (int i = 0; i < t; i++) {
    if (res[i] == true) {
      cout << "YES" << endl << prvi[i] + 1 << " " << drugi[i] + 1 << endl;
    } else
      cout << "NO" << endl;
  }
}
