Optimize tests.