Role Functionality with test cases

@vishwasbabu 

Role Functionality