Moved XHR test to separate file