Fix calls to RunPipeline in tests