Add test for XmlHttpRequest in map()

Tries to test for #68 but to no avail.