Avoiding graphical tests on headless environment