#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
const int M = 1e5 + 5;
const long long INF = 1e9 + 5;
const int base = 1e4;
const long long mod = 1e9 + 7;
int a[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
    }
    bool us = 0;
    for (int i = 1; i < n; i++) {
      if (max(a[i], a[i + 1]) - min(a[i], a[i + 1]) >= 2) {
        cout << "YES\n";
        cout << i << " " << i + 1 << "\n";
        us = 1;
        break;
      }
    }
    if (!us) cout << "NO\n";
  }
}
