Added a unit test for the messaging persistence serialization mechanism