broke out roleManager, added tests for roleManager functions