fix race in pipes test