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