test_term modifies an exp tree