#include <bits/stdc++.h>
using namespace std;
using namespace std;
const int MIN = -1e9;
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (auto &z : v) cin >> z;
  for (int i = 0; i < n - 1; ++i) {
    if (abs(v[i] - v[i + 1]) >= 2) {
      cout << "YES\n";
      cout << i + 1 << ' ' << i + 2 << '\n';
      return;
    }
  }
  cout << "NO\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) solve();
}
