Avoid flickering when executing a test