fix headless rendering on travis and actually execute the headless test

fixes #357