#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1e16;
int arr[222222];
int main(void) {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    for (int e = 0; e < n; e++) scanf("%d", &arr[e]);
    int err = 0, wh;
    for (int e = 1; e < n; e++) {
      if (abs(arr[e] - arr[e - 1]) >= 2) {
        err++;
        wh = e;
      }
    }
    if (err == 0)
      printf("NO\n");
    else {
      printf("YES\n%d %d\n", wh, wh + 1);
    }
  }
  return 0;
}
