HG-51 added tests for toggling the table of contents