fixed insertOrUpdate replace bug && cover test for low-patch

Signed-off-by: TZ <atian25@qq.com>