Test examples from Chapter 2