it is tested in the docstring below