Add tests for _adjustPrivilege.