Fixed error in daemon test.