tests for chapter 20