Added test and bench for cursor call