fix ajax in ErrorHandlingTest and ExceptionRedirectTest