Socket in test