Add tests for issue mathjax/MathJax#719.