add test script for synchronize