More robust pipe checks and tests.