Added test for http errors