test: Do not call socket.shutdown() in client socket
test: Many additions to improve test coverage