Add tests for `Cli`.

Since I forgot more than once to update the interface used by cli, I'm
adding some simple interface testing.

Sometimes I fucking miss a compiler.