#include <bits/stdc++.h>
using namespace std;
int tem;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int arr[n];
    for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
    int flag = 1;
    for (int i = 0; i < n - 1; i++) {
      if (abs(arr[i] - arr[i + 1]) > 1) {
        printf("YES\n%d %d\n", i + 1, i + 2);
        flag = 0;
        break;
      }
    }
    if (flag) printf("NO\n");
  }
  return 0;
}
