add mock_cli for testing