diff --git a/tests/UI/specs/MultiSites_spec.js b/tests/UI/specs/MultiSites_spec.js
index <HASH>..<HASH> 100644
--- a/tests/UI/specs/MultiSites_spec.js
+++ b/tests/UI/specs/MultiSites_spec.js
@@ -16,7 +16,12 @@ describe("MultiSitesTest", function () {
     var createdSiteId = null;
 
     before(function (done) {
-        var callback = function (undefined, response) {
+        var callback = function (error, response) {
+            if (error) {
+                done(error, response);
+                return;
+            }
+            
             createdSiteId = response.value;
             done();
         };
make sure to pass error to done callback in case there is an error