Optimize the test