add test for main.js
add unit test for server.js