Fix flickering tests.