sync-engine-shared - Fix/improve tests