add test for httpc error