Optimize test structure