Maybe add a couple lines to this test verifying that `getLanguageForPath()` starts reflecting the Document override once it's set?  And a similar addition to the test below verifying that is stops reflecting the override once it's removed?