#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, j, k, n;
  long long a[200005];
  cin >> t;
  while (t--) {
    cin >> n;
    bool tt = true;
    int p, q;
    for (i = 0; i < n; i++) {
      cin >> a[i];
      if (i > 0) {
        if (abs(a[i] - a[i - 1]) >= 2 && tt) {
          tt = false;
          p = i + 1;
          q = i;
        }
      }
    }
    if (tt)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      cout << q << " " << p << endl;
    }
  }
  return 0;
}
