optimize test files