Moved common integer tests to their own generic method; added and statisfied TradeGroup.quantity tests.