add test case for net.Socket.write(chunk, encoding, callback)