added documentation and comments to the unit tests