Raise exceptions and disable cheatly ouput during CLI tests

As I mentioned yesterday in issue #44 I tried to disable output in tests.
But these tests ended always successfully so I tried to fix them.

I guess it will be terrible code so please give me some feedback and I would like to improve it.