Removed window.QueryBuilder and added a mocha test