Improve line geometry unit test