fixed chapter 6 tests