Add StockCompare to test equals method.