refine sort test code
remove useless test data
fix insertion bug