#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long tt;
  cin >> tt;
  while (tt--) {
    long long n;
    cin >> n;
    vector<long long> arr(n);
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    long long flag = 0;
    for (long long i = 1; i < n; i++) {
      if (abs(arr[i] - arr[i - 1]) >= 2) {
        cout << "YES" << endl;
        cout << i << " " << i + 1 << endl;
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "NO" << endl;
    }
  }
  return 0;
}
