update import in _integrate() in tests/test_term_consistency.py