unit test - upsert