Tests for SyncManager

NB: not done yet: testing sync up when records were locally created or deleted (local updates is covered)
So `JSONArray.get(i)` *does* sort fields?