completed search.js testing