Is there a reason you didn't use core.UnitTest.createOdtDocument instead?