fix analytics unit tests for event_preprocessor