Add tests for sync_threshold