common-cli: add tests