A test helper for faking responses to web requests