Fixed Travis CI doctest errors