Renamed run_tests to avoid path conflicts and moved some functions into private methods.