signals: use doctest for example in docstring