improve management of test directories