Improved unit tests using the testscheduler
Fixed bug in publish method.
Updated tests
Session fix in the message which had dead fields
Updated tests.
Test fixes