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