Add tests for chapter17