Fix compile error of CursorTest