Add test for generating lines from string