added test for re-using pipelines