Bug fix: read from socket correctly. Fix ZSET test.