fix failing tests on travis-ci