Added tests for RolesService and improved createOrUpdate method of v2/attribute Service.