fixed node-daemon and test implemented