Fixed bug in daemonize testcase