#include <bits/stdc++.h>
using namespace std;
int n, d[500005], ans, t, a, l, b;
bool o;
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    for (int i = 1; i <= n; i++) {
      cin >> d[i];
    }
    for (int i = 2; i <= n; i++) {
      if (abs(d[i] - d[i - 1]) >= 2) {
        cout << "YES" << endl;
        cout << i - 1 << " " << i << endl;
        b = true;
        break;
      }
    }
    if (b == false) {
      cout << "NO" << endl;
    }
    b = false;
  }
}
