add cursorState function
fix test case
fix test case, pass konata0