rearrange test sequence