Test: Add unit tests for EventTriggerFactory

Add unit tests for the EventTriggerFactory.CreateTrigger() and
EventTriggerFactory.RegisterTriggers() modules. A generic test trigger
is used to verify the correctness of registering and loading valid event
triggers.