improved test_runner script