Add regression test cases for reverse scan