Prepare run_tests to be called directly to main()