Regression test so that upserts never replace document data