Added Nodejs unittest for the  query-validator.js