Updated test and change the cmd to string