tests for cli and clmain