cleaned up test_lines_from_path