Added helper for testing CLI commands