#include <bits/stdc++.h>
using namespace std;
void oj() {}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ;
  oj();
  long long n, t;
  cin >> t;
  while (t--) {
    cin >> n;
    vector<long long> v(n);
    for (long long i = 0; i < n; i++) cin >> v[i];
    bool ok = false;
    for (long long i = 1; i < n; i++)
      if (abs(v[i] - v[i - 1]) >= 2) {
        ok = true;
        cout << "YES" << endl << i << " " << i + 1 << endl;
        break;
      }
    if (!ok) cout << "NO" << endl;
  }
  return 0;
}
