#include <bits/stdc++.h>
using namespace std;
int t, n, a[1000], k;
int main()
{
    cin >> t;
    while(t--)
    {
        cin >> n >> k;
        if(k <= (n - 1)/2)
        {
            int spt = 0, spt1 = k + 1;
            for(int i = 1; i <= 2*k + 1; i++)
            {
                if(i%2 == 1)
                    a[i] = ++spt;
                else a[i] = ++spt1;
            }
            for(int i = 2*k + 2; i <= n; ++i)
                a[i] = ++spt1;
            for(int i = 1; i <= n; ++i)
                cout << a[i] << " ";
            cout << "\n";
        }
        else cout << -1 << "\n";
    }
    return 0;
}
