add some unit testing to sockets library