add chapter 9 tests