Question
A kubeconfig file called test.kubeconfig has been created in /root/TEST.
There is something wrong with the configuration.
Troubleshoot and fix it.
Answer
Open the file and inspect it:
cat /root/TEST/test.kubeconfig
Compare the output with the current config:
kubectl config view
Check for correctivity sections: clusters, context, users.kubectl config --kubeconfig=/root/TEST/test.kubeconfig get nodes