Fixed #106 - Updated SyncMessage handling in unit tests to use SyncMessage.parse() and SyncMessage.stringify()

We've been having trouble serializing SyncMessages, so SyncMessage methods were written to make sure they were serialized properly. This patch updates the test suite to use those methods.