Added tests from chapter 5 exercises.