refactoring HistoryTest