Fixed i18n get_locale setting in tests