#include <bits/stdc++.h>
using namespace std;
const int MAXN = 3e5 + 5;
int n;
int T;
int a[MAXN], q[MAXN];
int main() {
  int i, j;
  cin >> T;
  while (T--) {
    int flag = 0;
    cin >> n;
    for (i = (1); i <= (n); i++) {
      cin >> a[i];
    }
    for (i = (2); i <= (n); i++) {
      if (abs(a[i] - a[i - 1]) >= 2) {
        flag = 1;
        break;
      }
    }
    if (flag) {
      cout << "YES" << endl;
      cout << i - 1 << " " << i << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
