#include<bits/stdc++.h> 
using namespace std;
#define ll               long long int
#define pb                push_back
#define ppb               pop_back
#define pf                push_front
#define ppf               pop_front
#define all(x)            (x).begin(),(x).end()
#define uniq(v)           (v).erase(unique(all(v)),(v).end())
#define sz(x)             (int)((x).size())
#define fr                first
#define sc                second
#define pii               pair<int,int>
#define rep(i,a,b)        for(int i=a;i<b;i++)
#define mem1(a)           memset(a,-1,sizeof(a))
#define mem0(a)           memset(a,0,sizeof(a))
#define ppc               __sbuiltin_popcount
#define ppcll             __builtin_popcountll
#define IN                1000000000  
 
const int mod = 1000000007;    


int main()
{
    int t;
    cin >> t;
    while(t--)
    {
    	int n, k;
    	cin >> n >> k;
    	int a[n];
    	if(k > (n-1) / 2) 
		{
			cout << -1 << "\n";
		}
    	else
    	{
    	for(int i=0;i<n;i++) a[i] = -1;
    	
    	int last = n;
    	for(int i=1;i<n;i+=2)
    	{
    		if(k == 0) break;
    		a[i] = last;
    		last--;
    		k--;
		}
		
		for(int i=0;i<n;i++)
		{
			if(a[i] == -1)
			{
				a[i] = last;
				last--;
			}
		}
		for(int i=0;i<n;i++)
		cout << a[i] << " ";
		cout << "\n";
    	} 
	}
	return 0;
}
