testing the CLI as well