Added tests for server.js