SERVER-9517 Fix unit test now that hasRole and canDelegate are optional