fix insertIfNotExist return value, update doc and corresponding test