unit test for Item upsert behavior