make distribute test working.