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