Use mock XMLHttpRequest object to speed up tests