adding test for handling bad patch from simperium
Tests for Change.toJSONObject
Fixing toJSONObject to produce valid messages
Surfacing thrown exceptions in tests
RemoteChangeInvalidException contains reference to change
removing indirection via method call