added test for whether xterm running