fixing travis tests for pull requests with headless servers