Fixed tests for enterCmd.