Fix test for new streaming API
Integrate Travis CI for automatic testing