Added test for invalid role with hierarchy enabled