fix i18n test and flash messages