Update tests to ensure they do not timeout
Merge pull request #1057 from youennf/XMLHttpRequest-timeout

Update tests to ensure they do not timeout