more robust command definition spec, now testing the type of the command