Fixed bug in Command tests