Added unit tests for Chapter 2.