fix daemon tests