test socket set up