add selfhost in unittest