Add tests for the LocaleResolverTrait.