Solved the XMLHttpRequest Error, tests working!