Uncomment TOC tests.
Add event when a header is registered.
Make TOC implement previous spec.