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.
@ryabouza, it gets called before every test in that class. We should probably be making more use of this in the test suite in general...