src/ch2/ex5: modify testcode.
src/ch2/ex8: add.