add a test case, modify adaptivesort merge