test handlerChainFactory