-Fixed bug related to reporting http-errors
-Fixed bug in the unit tests (still not running on the first try for some reason)