fix testcase on locale change