[misc] Fix flickering tests.