@UnitTest class: added publish capabilities

Various improvements to support automatic publishing ability from within the @UnitTest class.
Additions to support automatic publishing.