add fork test and full main function test
make daemon keep server.js running