#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > jor, b_jor;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int q;
  cin >> q;
  while (q--) {
    int n, x, tm, pos = -1;
    cin >> n;
    bool f = 1;
    for (int i = 0; i < n; i++) {
      cin >> x;
      if (i == 0) {
        tm = x;
        continue;
      }
      if (abs(x - tm) > 1 && f) {
        f = 0;
        pos = i;
      }
      tm = x;
    }
    if (pos != -1) {
      cout << "YES" << endl;
      cout << pos << " " << pos + 1 << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
