Fix the bug of seqscan to indexscan test cases after fixing the bug in last commit