added a conditional test to avoid network sandboxing on travis-ci