Added PauseMessage serialization and unit tests