fix factory test for envs without host