More tests for the CLI and exit code