Add test for set/get document root and fix spurious import from Intellij (Blame Canada)