#include <bits/stdc++.h>
using namespace std;
int main() {
  long long test;
  cin >> test;
  for (int loop = 0; loop < test; loop++) {
    long long num, temp;
    cin >> num;
    vector<long long> arr;
    for (int i = 0; i < num; i++) {
      cin >> temp;
      arr.push_back(temp);
    }
    long long res = 0, i;
    for (i = 0; i < num - 1; i++) {
      if (abs(arr[i] - arr[i + 1]) >= 2) {
        cout << "YES\n";
        cout << i + 1 << " " << i + 2;
        res = 1;
        cout << "\n";
        break;
      }
    }
    if (!res) cout << "NO\n";
  }
}
