Added Docstrings for test_mining