Tests for the socket library