Fixes the implementation and tests of OfferBean and Offer.