This fixes privileges regression test, no midificaton to the core.