simplify mongo write test

use upsert