add tests for lines.expand