#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e18;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long t;
  cin >> t;
  for (long long i = (1); i <= (t); i++) {
    long long n;
    cin >> n;
    long long a[n + 1];
    for (long long j = (1); j <= (n); j++) {
      cin >> a[j];
    }
    bool flag = true;
    for (long long j = (1); j <= (n - 1); j++) {
      if (flag && abs(a[j] - a[j + 1]) >= 2) {
        cout << ("YES") << endl;
        cout << j << " " << j + 1 << endl;
        flag = false;
      }
    }
    if (flag) {
      cout << ("NO") << endl;
    }
  }
  return 0;
}
