Added error parsing to Offer class and an appropriate test for that
error handling