diff --git a/test/jiotests.js b/test/jiotests.js
index 9653f7a3662191b756e7ebe6024fe0f401f8f883..0391669db0517a4a8a13b59cb84b983ad3263d7a 100644
--- a/test/jiotests.js
+++ b/test/jiotests.js
@@ -7206,6 +7206,7 @@ test ("XWiki Live Server setup", function () {
     var o = setUp(this);
     o.jio.stop();
     this.sandbox.restore();
+    o.server.restore();
     o.jio.start();
     QUnit.stop();
 
@@ -7265,11 +7266,7 @@ test ("XWiki Live Server setup", function () {
         // get Attachment
         o.jio.getAttachment({"_id":"one.json", "_attachment":"att.txt"}, waitFor(function(err, ret) {
             ok(!err);
-            var fr = new FileReader();
-            fr.onload = waitFor(function(dat) {
-                ok(dat.target.result == "there2");
-            });
-            fr.readAsText(ret);
+            ok(ret == "there2");
         }));
 
     }).nThen(function(waitFor) {