Reorder the sequence of tests