Role Functionality with test cases

@vishwasbabu 

1. Added test case and modifications related to role module.