doctests: return number of failed tests as exit value