test resampling