#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int size;
    cin >> size;
    vector<int> vec(size);
    for (int k = 0; k < size; k++) cin >> vec[k];
    bool found = false;
    for (int k = 1; k < size; k++) {
      if (abs(vec[k] - vec[k - 1]) > 1) {
        cout << "YES" << '\n' << k << ' ' << k + 1 << '\n';
        found = true;
        break;
      }
    }
    if (!found) cout << "NO" << '\n';
  }
  return 0;
}
