Fixes the Localization test

Exchanged the HttpServletRequest with the new LocaleProvider.