Fix lines test and benchmarks.