#include <bits/stdc++.h>
using ll = long long;
using namespace std;
void solveIt() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int& x : a) {
    cin >> x;
  }
  for (int i = 1; i < n; ++i) {
    if (std::abs(a[i] - a[i - 1]) > 1) {
      cout << "YES\n" << i << ' ' << i + 1 << '\n';
      return;
    }
  }
  cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int t = 1;
  cin >> t;
  while (t-- > 0) solveIt();
}
