flatten test directories