Try to fix tests when running under travis.