#include <bits/stdc++.h>
int n;
int a[200200];
void solve() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  for (int i = 0; i < n - 1; i++) {
    if (abs(a[i + 1] - a[i]) >= 2) {
      printf("YES\n");
      printf("%d %d\n", i + 1, i + 2);
      return;
    }
  }
  printf("NO\n");
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    solve();
  }
}
