Fix assert error (added insertedId: undefined)
Fix db error message test