Write test for autosync_sync