Added tests for cursor module