#include <bits/stdc++.h>
#pragma GCC optimize("O3", "unroll-loops")
#pragma GCC target("avx2")
using namespace std;
template <class T, class U>
inline void checkmin(T& x, U y) {
  if (y < x) x = y;
}
template <class T, class U>
inline void checkmax(T& x, U y) {
  if (y > x) x = y;
}
template <class T, class U>
inline bool ifmax(T& x, U y) {
  if (y > x) return x = y, true;
  return false;
}
template <class T, class U>
inline bool ifmin(T& x, U y) {
  if (y < x) return x = y, true;
  return false;
}
template <class T>
inline void sort(T& a) {
  sort(a.begin(), a.end());
}
template <class T>
inline void rsort(T& a) {
  sort(a.rbegin(), a.rend());
}
template <class T>
inline void reverse(T& a) {
  reverse(a.begin(), a.end());
}
template <class T, class U>
inline istream& operator>>(istream& str, pair<T, U>& p) {
  return str >> p.first >> p.s;
}
template <class T, class U>
inline ostream& operator<<(ostream& str, pair<T, U>& p) {
  return str >> p.first >> p.s;
}
template <class T>
inline istream& operator>>(istream& str, vector<T>& a) {
  for (auto& i : a) str >> i;
  return str;
}
template <class T>
inline ostream& operator<<(ostream& str, vector<T>& a) {
  for (auto& i : a) str << i << " ";
  return str;
}
void solve() {
  int n, check = 0;
  cin >> n;
  vector<int> a(n);
  cin >> a;
  for (int i = 0; i < n - 1 && check == 0; ++i) {
    if (abs(a[i] - a[i + 1]) > 1) {
      cout << "YES" << '\n';
      cout << i + 1 << " " << i + 2 << '\n';
      check++;
    }
  }
  if (check == 0) cout << "NO" << '\n';
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(12);
  srand(94385);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
