regularize test data