Helper utility for testing isolated cli modules.