tests for exercises 15.3-4