Refactored sockets test work
Removed debugging print and removed commented code