Update the layout of the test document and add line numbering