fix ignoring output in doctest