socket specs updated to ensure better test coverage.

None of the existing specs are touched or modified. Only some specs are added to the existing one's in order to cover all possible scenarios.