#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    n = 2 * n - 1;
    vector<pair<pair<int, int>, int> > v;
    for (int i = 0; i < n; i++) {
      pair<int, int> x;
      cin >> x.first >> x.second;
      v.push_back({x, i + 1});
    }
    sort(v.begin(), v.end());
    cout << "YES\n";
    for (int i = 0; i < n - 1; i += 2) {
      if (v[i].first.second < v[i + 1].first.second)
        cout << v[i + 1].second << ' ';
      else
        cout << v[i].second << ' ';
    }
    cout << v.back().second << endl;
  }
}
