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