tests: chapter 8 test