#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n, l = -1, r = -1;
    cin >> n;
    vector<int> numbers(n);
    cin >> numbers[0];
    for (int i = 1; i < n; i++) {
      cin >> numbers[i];
      if (l == -1 && r == -1)
        if (abs(numbers[i] - numbers[i - 1]) >= 2) {
          l = i;
          r = i + 1;
        }
    }
    if (l != -1 && r != -1) {
      cout << "YES\n";
      cout << l << " " << r << "\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
