- added unittest shell script and server.js
- fixed test script not stopping server