In this test, n_perms is always 0. This is a bit surprising to me. I have the impression that the permutations are not tested.