Refactor the test code, Add index scan sql coverage test cases.