Added a lot of comments explaining the how the testing works.