Created a test pipe function