return 1 on failed cases in doctest