#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(0);
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    int x;
    cin >> x;
    bool done = false;
    for (int i = 2; i <= N; i++) {
      int cur;
      cin >> cur;
      if (!done && abs(cur - x) > 1) {
        done = true;
        cout << "YES\n";
        cout << i - 1 << " " << i << '\n';
      }
      x = cur;
    }
    if (!done) cout << "NO\n";
  }
}
