Permutation tests without subgroups