Added documentation and comments to the testing.py module.