Add test for issue mathjax/MathJax#578.