added cli unit test