#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
const int maxN = (int)3e5 + 100;
int a[maxN];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int tst;
  cin >> tst;
  while (tst--) {
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) cin >> a[i];
    bool fnd = false;
    for (int i = 1; i + 1 <= n; i++) {
      if (abs(a[i + 1] - a[i]) > 1) {
        cout << "YES" << '\n' << i << " " << i + 1 << '\n';
        fnd = true;
        break;
      }
    }
    if (!fnd) cout << "NO" << '\n';
  }
  return 0;
}
