Bootstrap and randomization tests of some nonparametric hypotheses