Patch sanitize test to address travis build error.