Test OfferExistsInDatabase