#include <bits/stdc++.h>
using namespace std;
int n;
void solve() {
  cin >> n;
  int a[n + 2], x = 0;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 2; i <= n; i++) {
    if (abs(a[i] - a[i - 1]) >= 2) {
      cout << "YES\n" << i - 1 << " " << i << "\n";
      x = 1;
      break;
    }
  }
  if (!x) cout << "NO\n";
}
int main() {
  int T = 1;
  cin >> T;
  while (T--) solve();
}
