MDL-43619 Roles: reset_role_capabilities unit test, cache fix