Fix test to use XHR