XWIKI-8581: The local admin of a subwiki should not be allowed to alter the index of entities outside that subwiki
- refactored tests
(cherry picked from commit 37d6e328c649e9d241e3adfa7fdb65a095aa9944)