fix wrong test in sync.sh