"upsert" support in update API.
Tests for update API.