Tests for chapter 5