feat(JUnit): Add guard method for headless environments from GuiTest.