Configure and optimize test environment.