Update the interface of Cursor. (#72)
Refactor tests for Expression and Sorter.