some lhttpc unit tests fixed

fixed some unit tests, needs to be reviewed!