Added a unit test for a command without enough required arguments, fixed bugs it revealed.