Tests for SyncManager

NB: not done yet: testing sync up when records were locally created or deleted (local updates is covered)
In general, should be move the test util classes to their own package, like ```util/test``` or something?