#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define f(i,n) for(int i=0;i<n;i++)
#define pb push_back
int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll t;
    cin >> t;
    while(t--){
    	ll n,k;
    	cin >> n >> k;
    	if(n%2==0){
    		if(k>(n-1)/2)
    		{
    			cout << -1 << endl;
    			continue;
    		}
    	}
    	else{
    		if(k>n/2)
    		{
    			cout << -1 << endl;
    			continue;
    		}
    	}
    	int p = 1;
    	cout << p++ << " ";
    	while(k--){
    		cout << p+1 << " " << p << " ";
    		p+=2;
    	}
    	for(int i=p;i<=n;i++)cout << i << " ";
    	cout << endl;
    }


	return 0;
}