Added calculation of test output directories.