add upsert test
Merge pull request #2 from zier/master

add TestUpsertUpdate test