XWIKI-8581: The local admin of a subwiki should not be allowed to alter the index of entities outside that subwiki
- refactored tests