diff --git a/tests/__init.test.js b/tests/__init.test.js
index <HASH>..<HASH> 100644
--- a/tests/__init.test.js
+++ b/tests/__init.test.js
@@ -9,7 +9,8 @@ navigator.getVRDisplays = function () {
   var resolvePromise = Promise.resolve();
   var mockVRDisplay = {
     requestPresent: resolvePromise,
-    exitPresent: resolvePromise
+    exitPresent: resolvePromise,
+    requestAnimationFrame: function () { return 1; }
   };
   return Promise.resolve([mockVRDisplay]);
 };
diff --git a/tests/core/a-entity.test.js b/tests/core/a-entity.test.js
index <HASH>..<HASH> 100644
--- a/tests/core/a-entity.test.js
+++ b/tests/core/a-entity.test.js
@@ -418,11 +418,13 @@ suite('a-entity', function () {
     });
 
     test('removes itself from scene parent', function (done) {
+      var count;
       var el = this.el;
       var parentEl = el.parentNode;
+      count = parentEl.object3D.children.length;
       parentEl.removeChild(el);
       process.nextTick(function () {
-        assert.equal(parentEl.object3D.children.length, 3);
+        assert.equal(parentEl.object3D.children.length, count - 1);
         done();
       });
     });
fix tests from vreffect bump