A resampling procedure for missing data in testing problems