adding a test for resampling