Add first tests for conditional upserts (about time...)