docstring with tests