updated test_term.py