#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> arr(n);
    bool flag = true;
    for (int i = 0; i < n; ++i) {
      cin >> arr[i];
    }
    for (int i = 0; i < n - 1; ++i) {
      if (abs(arr[i] - arr[i + 1]) >= 2) {
        flag = false;
        cout << "YES" << '\n';
        cout << i + 1 << " " << i + 2 << '\n';
        break;
      }
    }
    if (flag) {
      cout << "NO" << '\n';
    }
  }
  return 0;
}
