add test for setOnInsert