Added test for non-http errors