Draft test for [1758a0b603].
merge socket test from 8.5