Minor update to tests, added docstrings

Requested by @sigmavirus24.
Merge pull request #1341 from cdunklau/docstring_test_1329

Minor update to tests, added docstrings