QueryFailureTest: fix tests
QueryManager: add logging
Logger: fix format
TestUtils: add skipIfInTravis and requireTravis

JUnit Assume.assumeTrue() will skip a test if the assumption fails

Also use these new functions to simplify the tests we had before.