#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n, i;
  cin >> n;
  vector<long long int> v(n);
  for (i = 0; i < n; i++) {
    cin >> v[i];
  }
  long long int l = -1, r = -1;
  for (i = 1; i < n; i++) {
    if (abs(v[i] - v[i - 1]) >= 2) {
      l = i;
      r = i + 1;
      break;
    }
  }
  if (l == -1) {
    cout << "NO\n";
  } else {
    cout << "YES\n";
    cout << l << " " << r << "\n";
  }
}
int main() {
  long long int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
