Move command logging to cli module.
Move mockConsole to setUp.
Add init test.