Fixing a problem with temporary directories containing tests