diff --git a/test/unit/test-table-ext.js b/test/unit/test-table-ext.js
index <HASH>..<HASH> 100644
--- a/test/unit/test-table-ext.js
+++ b/test/unit/test-table-ext.js
@@ -5,6 +5,8 @@ jQuery(document).ready(function(){
 
 /*globals deepEqual,equal,expect,module,ok,QUnit,start,stop,test */
 
+var $ = jQuery;
+
 /*******************************************************************************
  * QUnit setup
  */
@@ -26,15 +28,12 @@ function _setupAsync(){
 	if( $("#tree").is(":ui-fancytree") ){
 		$("#tree").fancytree("destroy");
 	}
-	EVENT_SEQUENCE = [];
 	stop();
 }
 
 /** Get FancytreeNode from current tree. */
 function _getNode(key){
-	var tree = $("#tree").fancytree("getTree"),
-		node = tree.getNodeByKey(key);
-	return node;
+	return $("#tree").fancytree("getTree").getNodeByKey(key);
 }
table-ext: an error when trying to make visible not rendered node (cosmetics in tests)