Adds more tests and validations for latex