add upsert test