Should add all test code to the testing.\* files, unify a "main_test" function with intelligent parameters and error handling.