Added test for role and assigned role