test socket