Added XMLHttpRequest to test case