Refactored cli unit tests to suppress output