added test file and modified pipe