Test travis-ci issues

Currently the `master` branch is broken on travis-ci.
In this PR I try to understand and fix the test errors.