add random seeds to modularity permutations optionally
add more modularity tests and fix random seeding in probtune