Fix unit tests and DocumentListCursor itself