test/run_input: make variables more local