Optimize test settings