Add unit-test for Permissions::addPermissions() with _global key