Add test case for persistent document generation from a non folderish
context.