Cli test

This Pull Request  builds up on the original request  for a test suite for CLI commands.
Also has a small fix for argument mismatch in haas/cli.py.
Indeed; if you end up modifying the code as part of the debugging process, always revert the changes before committing. Also, use the `logging` module for print-debugging.