Implement LatestCursor with passing tests