added a commonly available assertion helper for trigger.
added a commonly available assertion helper for events.