cli unit tests