added test for pipe