fix typo of cursor language getter
add tests for new methods