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