Fixed bug in the CursorMock constructor