[WIP]Fixed #226 - Eliminates ordering issues in the SyncMessage protocol

To clarify, this is testing the client side module. These tests emulate the socket server enough to make sure the client side stuff acts as it is supposed to.