Global Deviance Permutation Tests