fixed i18n bugs and added tests for the LocaleDictionary and i18n service