added test cases for the latex.js