skip test on unix when x11 not available

If you just use `DISPLAY= iptest` then Qt console tests were failing with a
generic `: cannot connect to X server`