Tests of hypothesis in a repeated measures design from a permutation viewpoint