Fix a test of StrawEventHandlerFactory