Fix code to satisfy unit tests.

The Item.cost model attribute has been renamed to Item.value. Fix code as
necessary to make unit tests happy again.