quick test of resampling code