TestDirectory trait fix