fix testcmd