write chapter 5 tests
Add test file for ch6
write tests for chapter 6