#include <bits/stdc++.h>
using namespace std;
using namespace std::placeholders;
int main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int ntest;
  cin >> ntest;
  while (ntest--) {
    int n;
    cin >> n;
    vector<long long> a(n);
    for (auto& i : a) cin >> i;
    bool ok = false;
    for (int i = -1; ++i < n - 1;) {
      if (abs(a[i + 1] - a[i]) > 1) {
        cout << "YES\n";
        cout << i + 1 << ' ' << i + 2 << '\n';
        ok = true;
        break;
      }
    }
    if (!ok) cout << "NO\n";
  }
  return 0;
}
