fixing test to clean before creating dirs