[test][HistoryView] Test formatting plot data