Add support for RoleSecurityIdentity

As we discussed earlier, i made the test for the changes and merget them into one commit