Fix sync unit test