refac:extracted CursorTestUtils