#include <bits/stdc++.h>
using namespace std;
template <typename S, typename T>
ostream& operator<<(ostream& out, pair<S, T> const& p) {
  out << '(' << p.first << ", " << p.second << ')';
  return out;
}
template <typename T>
ostream& operator<<(ostream& out, vector<T> const& v) {
  int l = v.size();
  for (int i = 0; i < l - 1; i++) out << v[i] << ' ';
  if (l > 0) out << v[l - 1];
  return out;
}
template <typename T>
void trace(const char* name, T&& arg1) {
  cout << name << " : " << arg1 << endl;
}
template <typename T, typename... Args>
void trace(const char* names, T&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cout.write(names, comma - names) << " : " << arg1 << " | ";
  trace(comma + 1, args...);
}
const int inf = 1e9 + 10;
const long long int INF = 1e18 + 10;
const int MOD = 1e9 + 7;
const int MAXN = 2e5 + 10;
void solve() {
  int n;
  int a[MAXN];
  cin >> n;
  int l, r;
  for (int i = 0; i < n; i += 1) {
    cin >> a[i];
  }
  int maxDif = -1;
  for (int i = 0; i < n - 1; i += 1) {
    maxDif = max({abs(a[i + 1] - a[i]), maxDif});
    if (maxDif > 1) {
      l = i;
      r = i + 1;
      break;
    }
  }
  if (maxDif > 1) {
    cout << "YES" << endl;
    cout << l + 1 << " " << r + 1 << endl;
    return;
  }
  cout << "NO" << endl;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
