A fake XMLHttpRequest for testing