Add tests for HTTP 500 responses.