write test and create signature for ::splitIntoLines