Try to fix doctest exceptions for TravisCI