Change TERM when running tests with input