queryBuilder.js unit tests