Rearrange test data