Exercise 4.6 tests