test(all): port all tests over from the KaTeX.js project