Headless tests

This adds the possibility to run the tests using XFVB on Linux.