fix failing test in travis-ci