fix output
adds unit test for synchronizing services