refactoring EventsHistoryTest