Add integration test for sync