testing automatically generated tables of contents