add tests to chap 02