add test for sync