fix test issues introduced by 111b91
add travis-ci