#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i;
  cin >> t;
  while (t--) {
    vector<long long int> v(2);
    int n, y = 0, lower, up;
    cin >> n;
    for (i = 1; i <= n; i++) {
      long long int a, b;
      long long int x;
      cin >> x;
      if (y == 0) {
        if (i == 1)
          v[0] = x;
        else {
          v[1] = x;
          if (abs(v[0] - v[1]) >= 2) {
            y = 1;
            lower = i - 1;
            up = i;
          }
          v[0] = v[1];
        }
      }
    }
    if (y == 1) {
      cout << "YES" << endl;
      cout << lower << " " << up << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
