Add Cursor._warnIfExecuted tests.