tests: Minor PEP-8 and whitespace adjustments.
tests: Add more documentation (docstrings).