Tests for error handling and related (minor™) fixes

Part of

- https://trello.com/c/CuPDy6Ve/1739-api-blueprint-api-error-handling-proper-http-codes
- https://trello.com/c/ObThuTMy/1755-proper-testsuite-for-api-blueprint-api-app
if it is an error handler ... should call something similar to `res.send 500` afterwards.