#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 7;
int a[maxn];
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    int f = 0;
    for (int i = 1; i < n; i++) {
      if (abs(a[i] - a[i + 1]) >= 2) {
        printf("YES\n%d %d\n", i, i + 1);
        f = 1;
        break;
      }
    }
    if (!f) printf("NO\n");
  }
}
