moved cli mode test