fixed xmlhttprequest mock