Testing for nonlinear resample