some test code for pipe intersection