test_engine: fixed tag checking