#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t, n;
  cin >> t;
  while (t--) {
    long long i, f = 0;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    for (i = 0; i < n - 1; i++) {
      if (abs(a[i] - a[i + 1]) >= 2) {
        f = 1;
        break;
      }
    }
    if (f)
      cout << "YES\n" << i + 1 << " " << i + 2 << "\n";
    else
      cout << "NO\n";
  }
  return 0;
}
