Port updates to the LenghtIndexedLineTest testcase (see #323)