Added extra check to avoid problems with doctests in separate txt files.
Added a doctest in a separete txt file.