Modify rendering Table of Contents in order to render hashes of invisible headers
Fix a failing test