tests: add pipe tests