implement run_test(), factor is_test() out of compare_test() and into main()