Optimized all tests.