test query in index.js