Fix mac tests