added more tests and added no_prefix argument to the document
LatexDocument().getDocument() no longer adds a newline at the end of a document