fix process exit callback parameter.
add server.js test case.