added more tests for cursor