#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int nums[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int tt;
  cin >> tt;
  while (tt--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> nums[i];
    bool flag = false;
    for (int i = 1; i < n && !flag; i++) {
      if (max(nums[i], nums[i + 1]) - 2 >= min(nums[i], nums[i + 1])) {
        cout << "YES\n";
        cout << i << " " << (i + 1) << "\n";
        flag = true;
      }
    }
    if (!flag) cout << "NO\n";
  }
  return 0;
}
