set up and wrote test for chapter formatting functionality