Add pipe tests, fix some failing tests