Adding unit test case helper for export and reload.

[Similar to the one in the sc module]
Add export unit test helper to testDocumentLayout.
n#828390: Export subscript text.