Chapter 8 test class