XWIKI-8931 and XWIKI-8933: Support global user in local group in the new security authorization module, Support group nesting in the new security authorization module

 - fix unit tests and a minor bug