more tests as per exercises in chapter 7