tests for the EventFactory class