#include <bits/stdc++.h>
using namespace std;
int r[2 * 100005];
int main() {
  int a, b, c, d, e, f, g, h, i, j, k, l, ee, ff;
  cin >> a;
  while (a--) {
    cin >> b;
    for (c = 1; c <= b; c++) {
      cin >> r[c];
    }
    k = 0;
    for (c = 1; c <= b - 1; c++) {
      d = r[c];
      e = r[c + 1];
      f = abs(d - e);
      if (f >= 2) {
        j = c;
        l = c + 1;
        k = 1;
        break;
      }
    }
    if (k == 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
      cout << j << " " << l << endl;
    }
  }
  return 0;
}
