Capture stdout in test
Update .travis.yml