tests for the cli