"insertDocument :: caused by :: " looks a bit fragile, while I would expect "11000 E11000 duplicate key error index" to remain as-is. Perhaps use a `%s` prefix for these assertions?