fix bug when encode data is a map, the encoding results can be different from time to time, so use another strategy for verifying