Add equality test for cursor
Add test for wrap