Fix sync test