finished unit testing in chapter 6