added a test for cli