Finish the test coverage for cursor