Add tests for cursor (only normal execution path)