unit tests
slight refactor of `loadLocale()'