Add upsert test.