Fix broken tests on travis-ci.org