started adding test from chapter 8