[test] added a series of tests for cli-mode (incomplete)