Tidy up test for whether or not to resample.