Fix failing tests on travis.