add regression test for loggin in daemon