Issue #2: adding unit tests for the cli.