update rake test task
fixup cursor-test
add test case