added tests for new functions to achieve 100% in the RoleAPI