[Locale] fixed the failing test described in #9455