tests for new 500 behaviour, 404 behaviour, closes #8