Changed how all tests were called.

Introduced new function to run all tests. Gives control of previously hidden parameters like num_permutations for the permutation tests and avoids code duplication.