Issue 2577 unit test role resource