add test for cli