macro for trigger matching tests