Resampling techniques for testing nonprarametric hypotheses