Added test for ErrorHandlerFactory