Fixed a test. Added code comments.