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