Optimize drawing of tests.