patch for tests on travis-ci