fix failing tests of data_sample warnings