Add Travis build status. Fix a failing test for Travis