Adding support for travis and headless testing