tests for chapter 6