test and fix pipe()