Add additional tests for the error handler