Tests for SyncManager

NB: not done yet: testing sync up when records were locally created or deleted (local updates is covered)
We could.