Added to_lines and split tests