fixed test environment separation for daemon