Refactor tests to just check the first line of the output

I mostly care about the query string that's produced
Add Travis CI config