Fix failing test and add travis-ci build status