Fix central synch library - closes #1134

I've fixed the Central synch lib (which was broken after the gem cleanup) and added some tests.