Added tests for xhr timeouts