added a constructor to JSONProblemError which takes an options hash
fixed some of the unit tests assertions which were not firing