tests: move Cursor check to match_cursor