added docstrings unittest