json error response tests