Add docstring to test_dot