fix bugs in the cursor StringOperations test