Add a test for issue #425.

Also extended `loadXML` to support testing in the same way that `jsonp` and
`loadImage` do.