#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<long long> vec(n);
    for (int i = 0; i < n; i++) {
      cin >> vec[i];
    }
    int mni = 0, mxi = 0, f = 0;
    for (int i = 1; i < n; i++) {
      if (abs(vec[i] - vec[i - 1]) > 1) {
        mni = i;
        mxi = i + 1;
        f = 1;
        break;
      }
    }
    if (f == 0) {
      cout << "NO\n";
    } else {
      cout << "YES\n" << mni << " " << mxi << "\n";
    }
  }
  return 0;
}
