fix unit test for server.js