Added test for when updating multi-language document.
Refactoring, added test from @abinici