Tests for socketDescriptor() method