simplify test_script