Finish tests for chapter 8