Add test for issue mathjax/MathJax#777, and fix titles math-menu-1.