Fix screen blinking when run mocha testing.