Add socket test.