#include <bits/stdc++.h>
using namespace std;
int main() {
  long long T;
  cin >> T;
  while (T--) {
    long long N;
    cin >> N;
    int arr[N];
    for (int i = 0; i < N; i++) {
      cin >> arr[i];
    }
    int flag = 1;
    for (int i = 0; i < N - 1; i++) {
      if (abs(arr[i] - arr[i + 1]) >= 2) {
        cout << "YES" << endl;
        cout << i + 1 << " " << i + 2 << endl;
        flag = 0;
        break;
      }
    }
    if (flag) {
      cout << "NO" << endl;
    }
  }
  return 0;
}
