Disabling opening of a window when running example unittest.