Fix broken tests and update main index toctree