Bootstrap and permutation tests of some multivariate hypotheses