Tests for chapter 2

Tests for chapter two.