tests for Exercise 2