Reordering the testcases