Stub HTTP requests for tests