add test mod, use node testapp.js to start server in test mode