Add RoleSetC tests and fix logics of RoleSetC