test for the pipe read & write