add regression test for role inheritance