Add tests for mathjax/MathJax#811.