Added method and test for mocking connection failures with NSError regardless of URL or supplied mock response.