XWIKI-8882: Add a ContextualLocalizationManager helper
* fix tests