refactor pipeline test to use mock services in common