adding automated test in nodejs.