add testcase for sort_limit issue