Added auto tests for sockets.tcp

Changed base branch to "master". Can not modify the base branch in #355