Add Cursor._executeQuery test (before execution).
Add Cursor._executeQuery after execution test.