Test cases for parseErrorResponse.