Refactor unit-tests. Extract eventsMap initializing.