#include <bits/stdc++.h>
using namespace std;
void no(int ex = -1) { cout << ex << "\n"; }
void win(bool bl) {
  if (bl)
    cout << "YES";
  else
    cout << "NO";
  cout << "\n";
}
const int N = 2 * 100000;
const int mod = 998244353;
double T, n, m, k, p, res, pr;
bool bw;
string str;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> T;
  while (T--) {
    cin >> n;
    cin >> pr;
    bw = false;
    for (int i = 1; i < n; i++) {
      cin >> k;
      if (abs(k - pr) >= 2) {
        bw = true;
        p = i;
      }
      pr = k;
    }
    if (bw)
      cout << "YES"
           << "\n"
           << p << " " << p + 1 << "\n";
    else
      cout << "NO"
           << "\n";
  }
}
