Fix test files directory problems