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