HistoryItem and StockTableModel tests, fixes