add tests to Chap04