Add tests for cli new command