Added unit test for the SortAndTrimLinesVisitor