fixed daemon test