flatten tests