more test cases for exercise 8