added test script for pipe