Restore test distribution subroutine.