Add missing Command tests
Merge pull request #2216 from szymzet/command-better-coverage