fix reordering test cases